
#!/bin/bash
echo "正在重置用户${1}的密码，请稍后..."
python manage.py shell -c "from django.contrib.auth import get_user_model; User = get_user_model();  \
                           user = User.objects.get(username='${1}');  \
                           user.set_password('123456'); \
                           user.save();"  &&
echo "重置用户${1}的密码为：123456"